package com.project.mapper;

import com.project.bean.CityBean;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 城市mapper接口
 */
public interface ICityMapper {
    /**
     * 按国家ID查询城市集合
     * @param contryId 国家ID
     * @return 城市集合
     */
    @Select("select * from t_city where fk_contryId=#{contryId}")
    @ResultMap("cityMap")
    public List<CityBean> findByContry(int contryId);
}
